package srvGoods

import (
	"context"
	dtoGoods "mxshop/app/mxshop_api/api/internal/domain/dto/goods"
)

type GoodsSrv interface {
	// 商品接口

	GoodsList(ctx context.Context, req *dtoGoods.GoodsFilter) (*dtoGoods.GoodDTOList, error)

	// 用户提交订单有多个商品，需要批量查询商品的信息

	BatchGetGoods(ctx context.Context, ids []int64) (*dtoGoods.GoodDTOList, error)
	GetGoodsDetail(ctx context.Context, id int64) (*dtoGoods.GoodsDTO, error)
	CreateGoods(ctx context.Context, req *dtoGoods.GoodsDTO) (*dtoGoods.GoodsDTO, error)
	UpdateGoods(ctx context.Context, req *dtoGoods.GoodsDTO) error
	DeleteGoods(ctx context.Context, id int64) error
}
